package com.aji.mapper;

import com.aji.entity.Models;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ModelMapper {
    @Select("select id,model_name from models")
    List<Models> selectModel();

    @Select("select model_name from models where id = #{id}")
    String selectById(Integer id);

    @Select("select code from models where id = #{id}")
    String selectCode(Integer id);
}
